#ifndef WECHAT_H
#define WECHAT_H

#include <QWidget>
#include <QPoint>
#include "playerwgt.h"

class QMouseEvent;
class  QPushBtton;


class WeChat : public QWidget
{
    Q_OBJECT
public:
    explicit WeChat(QWidget *parent = nullptr);

protected:
    //拖拽窗口
virtual void mousePressEvent(QMouseEvent *event);
virtual void mouseMoveEvent(QMouseEvent *event);
virtual void mouseReleaseEvent(QMouseEvent *event);

private:
    QPoint point_ ;//当前窗口坐标
    bool isPress_ = false;
    QPushBtton* settingBtn = nullptr;
    QPushBtton* closeBtn = nullptr;
    PlayerWgt* player_ = nullptr;

signals:

};

#endif // WECHAT_H
